package com.kara.woodAgent.common;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author tzy
 * @version 1.0
 * @project wood_agent
 * @description
 * @date 2025/6/6 15:33:59
 */
@Data
public class BaseEntity {


	@TableId(
			type = com.baomidou.mybatisplus.annotation.IdType.ASSIGN_ID
	)
	private Long id;

	@TableField(fill = FieldFill.INSERT) //创建时自动填充
	private LocalDateTime createTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
	private LocalDateTime updateTime;

	@TableLogic(delval = "1", value = "0")
	private Boolean isDel;

}
